/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pw.analyzer;

/**
 *
 * @author Heitor
 */
public class Node {
    
    private String nome, descricao;
    private int state;
    private int id, type, catid;
    
    public Node(int id, int type, int catid){
        this.id = id;
        this.type = type;
        this.catid = catid;
    
        nome = "";
        descricao = "";
    }
    
    @Override
    public String toString() { // Always a good idea for debuging
        switch (this.type) {
            case 0:
                return "Inicio";
            case 2:
                return getNome();
            case 1:
                return "Final";
        }
        return "Erro";       // JUNG2 makes good use of these.
    }

    /**
     * @return the nome
     */
    public String getNome() {
        return nome;
    }

    /**
     * @param nome the nome to set
     */
    public void setNome(String nome) {
        this.nome = nome;
    }

    /**
     * @return the descricao
     */
    public String getDescricao() {
        return descricao;
    }

    /**
     * @param descricao the descricao to set
     */
    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the type
     */
    public int getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(int type) {
        this.type = type;
    }

    /**
     * @return the catid
     */
    public int getCatid() {
        return catid;
    }

    /**
     * @param catid the catid to set
     */
    public void setCatid(int catid) {
        this.catid = catid;
    }

    /**
     * @return the state
     */
    public int getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(int state) {
        this.state = state;
    }
    
    
}
